<template>
  <div>
    <h2>注入title {{ title }}</h2>
    <div>name{{ name }}</div>
    <input type="text" v-model="name">
  </div>
</template>

<script>
export default {
  inject: ["title", "name"],
};
</script>